From 893c8740ba08108e960e15e9436255a17b2481a2 Mon Sep 17 00:00:00 2001 From: Gabriel Souza Franco Date: Fri, 30 Jan 2015 19:22:02 -0200 Subject: [PATCH] Squelch warnings --- src/bin/cargo.rs | 2 +- src/cargo/lib.rs | 2 +- src/registry/lib.rs | 2 +- tests/resolve.rs | 2 +- tests/test_cargo_bench.rs | 2 +- tests/test_cargo_compile_custom_build.rs | 2 +- tests/tests.rs | 1 + 7 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/bin/cargo.rs b/src/bin/cargo.rs index 83dfaecd2..60b0b9b47 100644 --- a/src/bin/cargo.rs +++ b/src/bin/cargo.rs @@ -1,4 +1,4 @@ -#![allow(unstable)] +#![feature(collections, core, io, os, path)] extern crate "rustc-serialize" as rustc_serialize; extern crate cargo; diff --git a/src/cargo/lib.rs b/src/cargo/lib.rs index 895200b06..c8a20b609 100644 --- a/src/cargo/lib.rs +++ b/src/cargo/lib.rs @@ -1,5 +1,5 @@ #![deny(unused)] -#![allow(unstable)] +#![feature(collections, core, hash, io, libc, os, path, std_misc, unicode)] #![cfg_attr(test, deny(warnings))] extern crate libc; diff --git a/src/registry/lib.rs b/src/registry/lib.rs index bcd73b520..5ea5c0cee 100644 --- a/src/registry/lib.rs +++ b/src/registry/lib.rs @@ -1,4 +1,4 @@ -#![allow(unstable)] +#![feature(core, io)] extern crate curl; extern crate "rustc-serialize" as rustc_serialize; diff --git a/tests/resolve.rs b/tests/resolve.rs index 3198adcec..a5e1c85f5 100644 --- a/tests/resolve.rs +++ b/tests/resolve.rs @@ -1,4 +1,4 @@ -#![allow(unstable)] +#![feature(collections)] extern crate hamcrest; extern crate cargo; diff --git a/tests/test_cargo_bench.rs b/tests/test_cargo_bench.rs index 68109b5a7..9d472b7f7 100644 --- a/tests/test_cargo_bench.rs +++ b/tests/test_cargo_bench.rs @@ -151,7 +151,7 @@ test!(cargo_bench_failing_test { let p = project("foo") .file("Cargo.toml", basic_bin_manifest("foo").as_slice()) .file("src/foo.rs", r#" - #![allow(unstable)] + #![feature(test)] extern crate test; fn hello() -> &'static str { "hello" diff --git a/tests/test_cargo_compile_custom_build.rs b/tests/test_cargo_compile_custom_build.rs index 0b72cde37..bf80eebaf 100644 --- a/tests/test_cargo_compile_custom_build.rs +++ b/tests/test_cargo_compile_custom_build.rs @@ -23,7 +23,7 @@ test!(custom_build_script_failed { fn main() {} "#) .file("build.rs", r#" - #![allow(unstable)] + #![feature(os)] fn main() { std::os::set_exit_status(101); } diff --git a/tests/tests.rs b/tests/tests.rs index 6d457fcfe..c2a4f6780 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -1,4 +1,5 @@ #![deny(warnings)] +#![feature(collections, core, io, os, path, rustc_private, std_misc)] extern crate cargo; extern crate flate2; -- 2.30.2